﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CreateHtml.aspx.cs" Inherits="PlugNT.Cms.Web.Admin.Pre_Create.CreateHtml" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>生成静态文件</title>
<link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
<link rel="stylesheet" id='skin' type="text/css" href="../js/frame/ymPrompt/skin/qq/ymPrompt.css" />
<style type="text/css">
body, td { font-size:12px; z-index:100;}
a { color:#000;}
.main_table { width:100%; padding:2px; border:solid 1px #f4fbff;}
.td_title { height:25px; line-height:25px; background:#EEF7FD; color:#135294; font-weight:bold;}
.td_on { background:#f4fbff; height:25px; line-height:25px; }
.td_off { background:#deeff9; height:25px; line-height:25px; }
#form1 table tr td table tr td #rptMenuList headertemplate .td_title td {font-weight: normal;}
</style>
<script language="javascript" type="text/javascript" src="../js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="../js/frame/ymPrompt/ymPrompt.js"></script>
<script type="text/javascript">
function popitFrm(title,url)
{
    //hidden('ddlTables');
    //popit('生成静态页',url,500,300);
    ymPrompt.win(url, 500, 300, title, null, null, null, true);
}
function SubmitUrl()
{
    var currpostfix = $("#ddlTables option[@selected]").text();   
    document.location.href="?currpostfix="+currpostfix;
}

</script>
</head>
<body>
<div class="frmstatic" style="display:block">
    <span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
    <div class="controls">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tr>
            <td align"left">
                <table>
                    <tr>
                        <td><img src="../images/maintenance_32x32.gif" width="16" height="16" /></td>
                        <td><label>核心 > 生成静态文件</label></td>
                    </tr>
                </table>
            </td>
            <td align="right">
                <span>操作 > </span>
                <a href="#" style="color:#006ab8; text-decoration:underline;"  onclick="popitFrm('生成首页','CreatingHtml.aspx?type=siteindex');">生成首页</a>  
                <a href="#" style="color:#006ab8; text-decoration:underline;" onclick="popitFrm('生成地图','CreatingHtml.aspx?type=sitemap');">生成地图</a>
                <a href='javascript:window.history.back();'>返回</a>  
            </td>
          </tr>
        </table>
    </div>
    <span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px; "></span>
</div>

<div class="frmstatic" style="display:block">
 <table width="100%" border="0" cellpadding="10" cellspacing="0">
   <tr valign="top">
    <td valign="top">
    
  <form id="form1" runat="server">

     <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#d2e6fa">
       <tr valign="top">
        <td valign="top">
          
          <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#f4fbff">
          <tr>
           <td>

            <div style="margin-bottom:10px; display:<%=(!PlugNT.Custom.WebConfig.IsAccess)?"block":"none" %>;">
              <span><img src="../images/cms-ico2.gif" width="16" height="16" align="absmiddle">
                分表：
                <asp:DropDownList ID="ddlTables" runat="server"></asp:DropDownList>
              </span>
              <span style="color:#ffaa25; ">
                (提示：大批量数据生成请直接点击->生成页面->内容，小批量可使用ID段生成！)
              </span>
            </div>

            <table cellpadding=0 cellspacing=1 border=0 align="center" width="100%">
            <tr>
                <td valign="top">
                    <asp:Repeater ID="rptMenuList" runat="server" OnItemDataBound="rptMenuList_ItemDataBound">
                        <HeaderTemplate>
                         <table class="main_table" cellpadding="0" cellspacing="1" border="0" width="100%">
                           <tr align="center" class="td_title">
                                <td align="left" width="40%"><img src="../images/plugin.png" alt="" name="" width="16" height="16">&nbsp;栏目名称</td>
                                <td align="left" width="15%">绑定文件名称</td>
                                <td align="left" width="15%">生成文件路径</td>
                                <td align="left" width="13%">文章数量</td>                                
                                <td align="center" width="17%">生成页面</td>
                           </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                         <tr class="td_on" onmouseover="this.className='td_off'" onmouseout="this.className='td_on'">
                            <td>
                                <asp:HiddenField ID="hidClsno" runat="server" Value='<%#DataBinder.Eval(Container.DataItem,"clsno") %>' />
                                <asp:Literal ID="LitFirst" runat="server"></asp:Literal>
                                <asp:Label ID="LabClassNm" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"clsname") %>'></asp:Label>
                            </td>
                            <td>
                                <asp:Literal ID="litFilePath" runat="server"></asp:Literal>
                            </td>
                            <td title="<%=dicpath %><%#DataBinder.Eval(Container.DataItem, "createpath")%>">
                                <span style=" width:60px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;"><%=dicpath%><%#DataBinder.Eval(Container.DataItem, "createpath")%></span>
                            </td>
                            <td>
                                <asp:Literal ID="litNewsCount" runat="server"></asp:Literal>
                            </td>                            
                            <td align="center">
                                <asp:Literal ID="litExec" runat="server"></asp:Literal>
                            </td>
                         </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                        </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </td>
            </tr>
            <tr>
                <td valign="top">
                  <div style=" display:block; height:30px; margin-top:5px;">
                    <input class="bt" id="iptcontent" type="button" value="按ID生成内容页" onclick="popitFrm('按ID生成内容页','CreatingHtml.aspx?type=id&currpostfix=<%=currpostfix%>');" />
                    &nbsp;&nbsp;
                    <input class="bt" id="iptindex" type="button" value="生成聚集页" onclick="popitFrm('生成聚集页','CreatingHtml.aspx?type=indexs&currpostfix=<%=currpostfix%>');" />
                    &nbsp;&nbsp;
                    <input class="bt" id="iptlist" type="button" value="生成列表页" onclick="popitFrm('生成列表页','CreatingHtml.aspx?type=lists&currpostfix=<%=currpostfix%>');" />
                  </div>
                </td>
            </tr>
          </table>
          
        </td>
       </tr>
      </table>
     </td>
    </table>
  </form>
  
    </td>
  </tr>
 </table>
</div>
</body>
</html>
